Drop gtk_grab_get_current
authorMatthias Clasen <mclasen@redhat.com>
Fri, 28 Feb 2020 21:29:56 +0000 (16:29 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 28 Feb 2020 21:29:56 +0000 (16:29 -0500)
Another grab-related api that we are not using.

docs/reference/gtk/gtk4-sections.txt
gtk/gtkmain.c
gtk/gtkmain.h

index 35524158ff5e28b5e5ead8f8fa91c2773d5aff51..9f6d0081b9ff4ebe2b112141da747b83a29cdf80 100644 (file)
@@ -4392,7 +4392,6 @@ gtk_init_check
 
 <SUBSECTION>
 gtk_grab_add
-gtk_grab_get_current
 gtk_grab_remove
 
 <SUBSECTION>
index 6eb078a7daa4b09327c2692121ad82a9d2973331..fe2f63812f57a277ebf9c81b161b1a883b2d8dd3 100644 (file)
@@ -2045,24 +2045,6 @@ gtk_grab_add (GtkWidget *widget)
     }
 }
 
-/**
- * gtk_grab_get_current:
- *
- * Queries the current grab of the default window group.
- *
- * Returns: (transfer none) (nullable): The widget which currently
- *     has the grab or %NULL if no grab is active
- */
-GtkWidget*
-gtk_grab_get_current (void)
-{
-  GtkWindowGroup *group;
-
-  group = gtk_main_get_window_group (NULL);
-
-  return gtk_window_group_get_current_grab (group);
-}
-
 /**
  * gtk_grab_remove: (method)
  * @widget: The widget which gives up the grab
index 8c5ebdfd55546e36c27a6ef0141183578b9090b1..72adbb69eced9284f6c66628f338c382875c16a2 100644 (file)
@@ -110,8 +110,6 @@ GtkTextDirection gtk_get_locale_direction (void);
 GDK_AVAILABLE_IN_ALL
 void       gtk_grab_add            (GtkWidget          *widget);
 GDK_AVAILABLE_IN_ALL
-GtkWidget* gtk_grab_get_current    (void);
-GDK_AVAILABLE_IN_ALL
 void       gtk_grab_remove         (GtkWidget          *widget);
 
 GDK_AVAILABLE_IN_ALL